package com.trade.form;

import org.apache.struts.action.ActionForm;

/**
 * @author Lin Yang
 * 
 */
public class ProcurmentContractForm extends ActionForm {
    private static final long serialVersionUID = 7773539074548257950L;
    private long id;
    private String name;
    private long goodsId;
    private String goodsName;
    private String content;
    private long contractTime;
    private long approveTime;
    private long approveUserID;
    private String approveUserName;
    private long supplierId;
    private String supplierName;
    private long goodsNumber;
    private double goodsPrice;
    private double totalCost;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(long goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        String[] strs = goodsName.split("#");
        this.goodsId = Long.parseLong(strs[0].trim());
        this.goodsName = strs[1].trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getContractTime() {
        return contractTime;
    }

    public void setContractTime(long contractTime) {
        this.contractTime = contractTime;
    }

    public long getApproveTime() {
        return approveTime;
    }

    public void setApproveTime(long approveTime) {
        this.approveTime = approveTime;
    }

    public long getApproveUserID() {
        return approveUserID;
    }

    public void setApproveUserID(long approveUserID) {
        this.approveUserID = approveUserID;
    }

    public String getApproveUserName() {
        return approveUserName;
    }

    public void setApproveUserName(String approveUserName) {
        this.approveUserName = approveUserName;
    }

    public long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(long supplierId) {
        this.supplierId = supplierId;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        String[] strs = supplierName.split("#");
        this.supplierId = Long.parseLong(strs[0].trim());
        this.supplierName = strs[1].trim();
    }

    public long getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(long goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public double getTotalCost() {
        return totalCost;
    }

    public void setTotalCost(double totalCost) {
        this.totalCost = totalCost;
    }

}
